package com.binhthuan.catechist.client.component;

import com.smartgwt.client.util.StringUtil;
import com.smartgwt.client.widgets.grid.CellFormatter;
import com.smartgwt.client.widgets.grid.ListGridRecord;

public class GridCellFormatter implements CellFormatter {

    @Override
    public String format(Object value, ListGridRecord record, int rowNum, int colNum) {
        if (value != null) {
            return StringUtil.asHTML(value.toString());
        }

        return null;
    }
}
